Report generated on 23-May-2019 at 05:19:56 by pytest-html v1.15.2
| Driver | Chrome |
| JAVA_HOME | /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home |
| Packages | {'pytest': '3.6.0', 'py': '1.5.3', 'pluggy': '0.6.0'} |
| Platform | Darwin-18.5.0-x86_64-i386-64bit |
| Plugins | {'variables': '1.7.0', 'spec': '1.1.0', 'selenium': '1.13.0', 'metadata': '1.7.0', 'logger': '0.3.0', 'json': '0.4.0', 'html': '1.15.2', 'base-url': '1.4.1', 'allure-adaptor': '1.7.8'} |
| Python | 3.6.2 |
10 tests ran in 220.89 seconds.
(Un)check the boxes to filter the results.
5 passed, 1 skipped, 5 failed, 0 errors, 0 expected failures, 0 unexpected passes| Result | Test | Duration | Links |
|---|---|---|---|
| No results found. Try to check the filters | |||
| Failed | Test rate close window on first screen | 8.66 | Driver Log URL HTML Browser Log Driver Log |
|
self = <test_rate.TestRate object at 0x1071f24e0>, selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="af4d27eeee7d6ddaf7333895f2160837")> main_url = 'http://localhost:58001' def test_close_window(self, selenium, main_url): """close window on first screen""" while True: selenium.delete_all_cookies() selenium.get(f"{main_url}{PATH}") main_page = MainPage(selenium) if main_page.exist_valuation_window(): main_page.click_close() time.sleep(2) if selenium.get_cookie('NPS_sended'): assert selenium.get_cookie('NPS_sended')['value'] == '1' else: > raise AssertionError('Cookie NPS_sended does not contained') E AssertionError: Cookie NPS_sended does not contained main_page = <helpers.page.MainPage object at 0x1071f7c50> main_url = 'http://localhost:58001' selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="af4d27eeee7d6ddaf7333895f2160837")> self = <test_rate.TestRate object at 0x1071f24e0> tests/test_rate.py:65: AssertionError ------------------------------ Captured log setup ------------------------------ test_rate.py 18 INFO ================================================================= test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate close window on first screen------------------------------- pytest-selenium -------------------------------- Driver log: /private/var/folders/4j/v01qlzkd6y7_4t49qtv08ksm0000gn/T/pytest-of-alexandert/pytest-61/test_close_window0/driver.log URL: http://localhost:58001/ | |||
| Failed | Test rate send negative valuation | 116.11 | Driver Log URL HTML Browser Log Driver Log |
|
self = <test_rate.TestRate object at 0x107207dd8>, selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="211dde358de97fac396cace72bf37354")> main_url = 'http://localhost:58001' connect_to_db = <connection object at 0x10725d190; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0>, user_action = '6' feedback = 'test1558577775' @pytest.mark.parametrize( "user_action, feedback", [ ("6", f"test{int(time.time())}"), ("5", f"test{int(time.time())}"), ("0", f"test{int(time.time())}"), ("4", f"test{int(time.time())}\n\ntest"), ("2", f" test{int(time.time())} ") ] ) def test_send_negative(self, selenium, main_url, connect_to_db, user_action, feedback): """send negative valuation""" while True: selenium.delete_all_cookies() selenium.get(f"{main_url}{PATH}") main_page = MainPage(selenium) if main_page.exist_valuation_window(): main_page.click_valuation(user_action) > main_page.feedback = feedback connect_to_db = <connection object at 0x10725d190; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> feedback = 'test1558577775' main_page = <helpers.page.MainPage object at 0x107224400> main_url = 'http://localhost:58001' selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="211dde358de97fac396cace72bf37354")> self = <test_rate.TestRate object at 0x107207dd8> user_action = '6' tests/test_rate.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/helpers/elements.py:7: in __set__ WebDriverWait(driver, 100).until(lambda driver: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <selenium.webdriver.support.wait.WebDriverWait (session="211dde358de97fac396cace72bf37354")> method = <function MainPageElement.__set__.<locals>.<lambda> at 0x1072abae8>, message = '' def until(self, method, message=''): """Calls the method provided with the driver as an argument until the \ return value is not False.""" screen = None stacktrace = None end_time = time.time() + self._timeout while True: try: value = method(self._driver) if value: return value except self._ignored_exceptions as exc: screen = getattr(exc, 'screen', None) stacktrace = getattr(exc, 'stacktrace', None) time.sleep(self._poll) if time.time() > end_time: break > raise TimeoutException(message, screen, stacktrace) E selenium.common.exceptions.TimeoutException: Message: end_time = 1558577927.727772 message = '' method = <function MainPageElement.__set__.<locals>.<lambda> at 0x1072abae8> screen = None self = <selenium.webdriver.support.wait.WebDriverWait (session="211dde358de97fac396cace72bf37354")> stacktrace = None ../../.pyenv/versions/3.6.2/lib/python3.6/site-packages/selenium/webdriver/support/wait.py:80: TimeoutException ------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send negative valuation------------------------------- pytest-selenium -------------------------------- Driver log: /private/var/folders/4j/v01qlzkd6y7_4t49qtv08ksm0000gn/T/pytest-of-alexandert/pytest-61/test_send_negative_6_test155850/driver.log URL: http://localhost:58001/ | |||
| Failed | Test rate send negative valuation | 8.75 | Driver Log URL HTML Browser Log Driver Log |
|
self = <test_rate.TestRate object at 0x107253f28>, selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="7a7e19050ee5afd2a198a9f29406f65b")> main_url = 'http://localhost:58001' connect_to_db = <connection object at 0x10725d420; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0>, user_action = '0' feedback = 'test1558577775' @pytest.mark.parametrize( "user_action, feedback", [ ("6", f"test{int(time.time())}"), ("5", f"test{int(time.time())}"), ("0", f"test{int(time.time())}"), ("4", f"test{int(time.time())}\n\ntest"), ("2", f" test{int(time.time())} ") ] ) def test_send_negative(self, selenium, main_url, connect_to_db, user_action, feedback): """send negative valuation""" while True: selenium.delete_all_cookies() selenium.get(f"{main_url}{PATH}") main_page = MainPage(selenium) if main_page.exist_valuation_window(): main_page.click_valuation(user_action) main_page.feedback = feedback main_page.click_send() time.sleep(2) if selenium.get_cookie('NPS_sended'): assert selenium.get_cookie('NPS_sended')['value'] == '1' else: raise AssertionError('Cookie NPS_sended does not contained') assert main_page.get_valuation_window().is_displayed() == False > assert_from_db(connect_to_db, user_action, feedback.strip()) connect_to_db = <connection object at 0x10725d420; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> feedback = 'test1558577775' main_page = <helpers.page.MainPage object at 0x107210eb8> main_url = 'http://localhost:58001' selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="7a7e19050ee5afd2a198a9f29406f65b")> self = <test_rate.TestRate object at 0x107253f28> user_action = '0' tests/test_rate.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ conn = <connection object at 0x10725d420; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0>, user_action = '0' feedback = 'test1558577775' def assert_from_db(conn, user_action, feedback): result = get_from_db(conn) flag = False if result["user_action"] != user_action: flag = True if result["feedback"] != feedback: if len(set([result["feedback"], feedback]) - set(['', None])) != 0: flag = True if flag: > raise AssertionError(f"params from request - 'user_action': {user_action}, 'feedback': {feedback}\nparams from DB - 'user_action': {result['user_action']}, 'feedback': {result['feedback']}") E AssertionError: params from request - 'user_action': 0, 'feedback': test1558577775 E params from DB - 'user_action': None, 'feedback': test1558577775 conn = <connection object at 0x10725d420; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> feedback = 'test1558577775' flag = True result = {'device': 'desktop', 'feedback': 'test1558577775', 'user_action': 'None'} user_action = '0' tests/helpers/support/assertions.py:26: AssertionError ------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send negative valuation------------------------------- pytest-selenium -------------------------------- Driver log: /private/var/folders/4j/v01qlzkd6y7_4t49qtv08ksm0000gn/T/pytest-of-alexandert/pytest-61/test_send_negative_0_test155850/driver.log URL: http://localhost:58001/ | |||
| Failed | Test rate send negative valuation | 2.55 | Driver Log URL HTML Browser Log Driver Log |
|
self = <test_rate.TestRate object at 0x107304860>, selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="8e16222f26fc5a2a03f0eb394970d653")> main_url = 'http://localhost:58001' connect_to_db = <connection object at 0x10725d6b0; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0>, user_action = '2' feedback = ' test1558577775 ' @pytest.mark.parametrize( "user_action, feedback", [ ("6", f"test{int(time.time())}"), ("5", f"test{int(time.time())}"), ("0", f"test{int(time.time())}"), ("4", f"test{int(time.time())}\n\ntest"), ("2", f" test{int(time.time())} ") ] ) def test_send_negative(self, selenium, main_url, connect_to_db, user_action, feedback): """send negative valuation""" while True: selenium.delete_all_cookies() selenium.get(f"{main_url}{PATH}") main_page = MainPage(selenium) if main_page.exist_valuation_window(): main_page.click_valuation(user_action) main_page.feedback = feedback main_page.click_send() time.sleep(2) if selenium.get_cookie('NPS_sended'): assert selenium.get_cookie('NPS_sended')['value'] == '1' else: raise AssertionError('Cookie NPS_sended does not contained') assert main_page.get_valuation_window().is_displayed() == False > assert_from_db(connect_to_db, user_action, feedback.strip()) connect_to_db = <connection object at 0x10725d6b0; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> feedback = ' test1558577775 ' main_page = <helpers.page.MainPage object at 0x107304c50> main_url = 'http://localhost:58001' selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="8e16222f26fc5a2a03f0eb394970d653")> self = <test_rate.TestRate object at 0x107304860> user_action = '2' tests/test_rate.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ conn = <connection object at 0x10725d6b0; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0>, user_action = '2' feedback = 'test1558577775' def assert_from_db(conn, user_action, feedback): result = get_from_db(conn) flag = False if result["user_action"] != user_action: flag = True if result["feedback"] != feedback: if len(set([result["feedback"], feedback]) - set(['', None])) != 0: flag = True if flag: > raise AssertionError(f"params from request - 'user_action': {user_action}, 'feedback': {feedback}\nparams from DB - 'user_action': {result['user_action']}, 'feedback': {result['feedback']}") E AssertionError: params from request - 'user_action': 2, 'feedback': test1558577775 E params from DB - 'user_action': 2, 'feedback': test1558577775 conn = <connection object at 0x10725d6b0; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> feedback = 'test1558577775' flag = True result = {'device': 'desktop', 'feedback': ' test1558577775 ', 'user_action': '2'} user_action = '2' tests/helpers/support/assertions.py:26: AssertionError ------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send negative valuation------------------------------- pytest-selenium -------------------------------- Driver log: /private/var/folders/4j/v01qlzkd6y7_4t49qtv08ksm0000gn/T/pytest-of-alexandert/pytest-61/test_send_negative_2____test150/driver.log URL: http://localhost:58001/ | |||
| Failed | Test rate close window on comment page | 4.58 | Driver Log URL HTML Browser Log Driver Log |
|
self = <test_rate.TestRate object at 0x10775fc18>, selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="53d3348eefbdc383e3f0c5325a60539e")> main_url = 'http://localhost:58001' connect_to_db = <connection object at 0x10725d190; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> def test_close_on_comment_page(self, selenium, main_url, connect_to_db): """close window on comment page""" user_action = "1" feedback = f"test{int(time.time())}" while True: selenium.delete_all_cookies() selenium.get(f"{main_url}{PATH}") main_page = MainPage(selenium) if main_page.exist_valuation_window(): main_page.click_valuation(user_action) main_page.feedback = feedback main_page.click_close() time.sleep(2) if selenium.get_cookie('NPS_sended'): assert selenium.get_cookie('NPS_sended')['value'] == '1' else: > raise AssertionError('Cookie NPS_sended does not contained') E AssertionError: Cookie NPS_sended does not contained connect_to_db = <connection object at 0x10725d190; dsn: 'user=postgres password=xxx dbname=core host=localhost port=5433', closed: 0> feedback = 'test1558577990' main_page = <helpers.page.MainPage object at 0x10763f8d0> main_url = 'http://localhost:58001' selenium = <selenium.webdriver.chrome.webdriver.WebDriver (session="53d3348eefbdc383e3f0c5325a60539e")> self = <test_rate.TestRate object at 0x10775fc18> user_action = '1' tests/test_rate.py:173: AssertionError ------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate close window on comment page------------------------------- pytest-selenium -------------------------------- Driver log: /private/var/folders/4j/v01qlzkd6y7_4t49qtv08ksm0000gn/T/pytest-of-alexandert/pytest-61/test_close_on_comment_page0/driver.log URL: http://localhost:58001/ | |||
| Skipped | Test rate window exists if NPS_sended = 1 and frequency of show window::setup | 0.00 | |
|
('tests/test_rate.py', 29, 'Skipped: unconditional skip') | |||
| Passed | Test rate send positive valuation | 14.76 | |
|
------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send positive valuation | |||
| Passed | Test rate send positive valuation | 6.50 | |
|
------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send positive valuation | |||
| Passed | Test rate send negative valuation | 23.26 | |
|
------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send negative valuation | |||
| Passed | Test rate send negative valuation | 12.86 | |
|
------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send negative valuation | |||
| Passed | Test rate send negative valuation without comment | 2.42 | |
|
------------------------------ Captured log setup ------------------------------ test_rate.py 24 INFO ==================TEST STARTED================== test_rate.py 25 INFO Test rate send negative valuation without comment | |||